package com.tuyan.aixiang.common;

public enum ErrorCode {
    // @formatter:off
    SUCCESS                         (200, "成功"),
    FAIL                            (-1, "失败");
    // @formatter:on
    private Integer code;
    private String message;

    ErrorCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}